@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  color: #383838;
}
p {
  margin: 0;
}
label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  background: #fff;
  padding: 20px;
  height: calc(100vh - 50px);
  overflow-y: auto;
}
.wrap-container {
  background: #f1f2f3;
  padding: 15px;
  height: calc(100vh - 50px);
  overflow-y: auto;
}
.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}
$common-primary: #0988fb;
$common-color-text: #383838;

.dis_flex {
  display: flex;
}
.flexBetween {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.align_center {
  display: flex;
  align-items: center;
}
.el-table {
  thead tr {
    th.el-table__cell {
      background: #f3f4f6;
      font-weight: normal;
      font-size: 14px;
      line-height: 24px;
      color: #383838;
      border-bottom: none !important;
      padding: 16px 0;
      div {
        .el-checkbox {
          margin-left: 4px;
        }
      }
    }
  }
  tbody {
    td {
      font-size: 14px;
      color: #383838;
      padding: 14px 0;
      .el-button + .el-button {
        margin-left: 12px;
      }
    }
  }
  .table_btn {
    .el-button {
      color: #383838;
      &.primary_text {
        color: #0988fb;
        &.is-disabled {
          opacity: 0.5;
        }
      }
      &.red_text {
        color: #d43030;
      }
    }
  }
}
.search_box {
  background: #fff;
  padding: 20px 15px 23px;
  .search_tit {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 19px;
  }
  .el-form {
    .el-input,
    .el-select,
    .el-date-editor {
      width: 240px;
    }
    .el-input__inner {
      height: 35px;
      line-height: 35px;
    }
    .el-form-item__label {
      padding-right: 0;
      color: #383838;
      font-weight: normal;
    }
    .el-form-item {
      margin-bottom: 15px;
      .el-button {
        border-radius: 8px;
        margin: 0;
        &:nth-child(2) {
          margin: 0 28px;
        }
      }
    }
    .search_btn {
      margin-left: 15px;
    }
  }
}
.table_box {
  background: #fff;
  margin-top: 15px;
  padding: 0 15px 27px;
  .handle_btn {
    .el-button {
      border-radius: 8px;
    }
    .el-button + .el-button {
      margin-left: 28px;
    }
  }
}
.tabs_box {
  position: relative;
  .el-tabs {
    .el-tabs__nav-wrap::after {
      height: 1px;
      background-color: #e5e5e5;
    }
    .el-tabs__active-bar {
      display: none;
    }
    .el-tabs__nav {
      padding-left: 12px;
    }
    .el-tabs__item {
      position: relative;
      padding: 0;
      font-size: 16px;
      color: #808080;
      height: 44px;
      line-height: 44px;
      margin: 0 19px;
      &:nth-child(2) {
        margin-left: 0;
      }
      &.is-active {
        color: #2a82e4;
        &::after {
          display: block;
          content: "";
          width: 56px;
          height: 2px;
          background: #2a82e4;
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          margin: 0 auto;
        }
      }
    }
  }
}
.tabs_day {
  display: flex;
  .tabs_item {
    width: 56px;
    height: 27px;
    line-height: 27px;
    text-align: center;
    border: 1px solid #a6a6a6;
    color: #a6a6a6;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 14px;
    cursor: pointer;
    &.active {
      border-color: #2a82e4;
      color: #2a82e4;
    }
  }
}
.popperStyle {
  background: #f1f4fb !important;
  p {
    line-height: 20px;
    font-size: 12px;
    color: #808080;
  }
  .popper__arrow {
    display: none;
  }
}
// 带有竖线的标题
.manage_tit {
  display: flex;
  align-items: center;
  .line {
    width: 5px;
    height: 18px;
    background: #0988fb;
  }
  p {
    font-size: 16px;
    line-height: 24px;
    margin-left: 8px;
  }
}
.blue {
  color: #2a82e4;
}
.default_btn {
  border-radius: 8px;
  background: #e5e5e5;
  border: none;
  color: #383838;
  &:hover,
  &:focus {
    color: #383838;
    background: #e5e5e5;
  }
  &.primary {
    background: #2a82e4;
    color: #fff;
  }
  &.warn {
    background: #ff8d1a;
    color: #fff;
  }
  & + .el-button {
    margin-left: 12px;
  }
}
.el-form {
  .el-input__inner {
    // border-color: #e5e5e5;
    &::placeholder {
      color: #a6a6a6;
    }
  }
  .el-textarea__inner {
    font-family: Microsoft YaHei;
    resize: none;
    &::placeholder {
      color: #a6a6a6;
    }
  }
  .el-form-item {
    &.is-required {
      .el-form-item__label:before {
        color: #d43030;
        margin-right: 0;
      }
    }
  }
  .el-radio__inner {
    width: 16px;
    height: 16px;
    &::after {
      width: 6px;
      height: 6px;
    }
  }
  .el-form-item__label {
    font-weight: normal;
    color: #383838;
  }
}
.form_dialog {
  .el-dialog__body {
    height: calc(100vh - 200px);
    overflow-y: auto;
  }
}
.bulletin_popper {
  width: 120px !important;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 5px 4px 5px -1px rgba(0, 0, 0, 0.25);
  padding: 13px 6px 13px 8px;
  .el-menu-item {
    height: 25px;
    line-height: 25px;
    padding-left: 6px !important;
    border-radius: 3px;
    font-size: 14px;
    color: #383838;
    &:not(:last-child) {
      margin-bottom: 10px;
    }
    &:hover {
      background: #008efa;
      color: #fff;
    }
  }
}
.popper-custom {
  .el-cascader-panel {
    .el-cascader-menu {
      .el-radio {
        height: 100%;
        width: 150px;
        opacity: 0;
        position: absolute;
        .el-radio__input {
          .el-radio__inner {
            border: none;
          }
        }
        .el-radio__input.is-checked {
          .el-radio__inner {
            background: none;
          }
        }
      }
    }
  }
}
.flex {
  display: flex;
}
.el-button--primary {
  background: #2a82e4;
}
.items_center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-ffffff {
  background: #fff;
}
.dialog_center {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.dialog_common_btn {
  .el-button {
    width: 76px;
    height: 32px;
    line-height: 32px;
    padding: 0;
    border-radius: 6px;
    & + .el-button {
      margin-left: 13px;
    }
  }
}
.save_btn {
  .el-button {
    width: 90px;
    height: 38px;
    border-radius: 8px;
    font-size: 16px;
    padding: 0;
    line-height: 38px;
    &.el-button--default {
      border: none;
      background: #e5e5e5;
      color: #808080;
    }
    & + .el-button {
      margin-left: 40px;
    }
  }
}
.color-0988FB {
  color: #0988fb !important;
}
.color-383838 {
  color: #383838 !important;
}
.dialog-footer {
  .el-button {
    width: 82px;
    height: 35px;
    border-radius: 3px;
    padding: 0;
    box-sizing: border-box;
    &.el-button--default {
      background: #e5e5e5;
      border: none;
      color: #808080;
    }
    & + .el-button {
      margin-left: 20px;
    }
  }
}
.builletin_popper {
  padding: 0;
  border-radius: 6px;
  .popover_tit {
    height: 22px;
    line-height: 22px;
    background: #d9e9fa;
    border-radius: 6px 6px 0 0;
    padding-left: 10px;
    font-size: 12px;
    color: #383838;
  }
  .popover_cont {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 18px;
    color: #383838;
  }
  .popper__arrow {
    display: none;
  }
}
.order_popper {
  padding-top: 0;
  padding-bottom: 0;
  .el-table {
    th.el-table__cell {
      background: #fff;
      border-bottom: 1px solid #e5e5e5;
      padding: 0;
    }
    .el-table__body-wrapper {
      height: 300px;
      overflow-y: auto;
    }
  }
  .write_btn {
    .el-button {
      border-radius: 6px;
      height: 32px;
      line-height: 32px;
      padding: 0;
      &.el-button--primary {
        width: 76px;
      }
      &.el-button--default {
        width: 66px;
        color: #383838;
        border-color: #e5e5e5;
      }
    }
  }
}
